pow.webserver
Class Conf
java.lang.Object
pow.webserver.Conf
public class Conf
- extends java.lang.Object
store useful data about the server configuration
and database connection by
reading a specific file place in the 'conf' folder of
the web application
|
Constructor Summary |
Conf(java.lang.String default_folder,
java.lang.String conf_filename)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Conf
public Conf(java.lang.String default_folder,
java.lang.String conf_filename)
- Parameters:
default_folder - folder of the web application on the serverconf_filename - name of the configuration file placed in 'conf' folder of the web application
portIvyToWeb
public int portIvyToWeb()
- Returns:
- the udp port on which the server receive data from ivy buses
portWebToIvy
public int portWebToIvy()
- Returns:
- the udp port on which the server send data to ivy buses
getUdpSize
public int getUdpSize()
- Returns:
- the max size of an udp trame
getDBPassword
public java.lang.String getDBPassword()
- Returns:
- the password to connect to the database
getDBUserName
public java.lang.String getDBUserName()
- Returns:
- the login to connect to the database
getDataBaseName
public java.lang.String getDataBaseName()
- Returns:
- the database name
getSocketTimeout
public int getSocketTimeout()
- Returns:
- a time after what an exception is thrown if no message has been received by server
mailAdmin
public java.lang.String mailAdmin()
- Returns:
- the mail to contact if any problem occurs
adminLogin
public java.lang.String adminLogin()
- Returns:
- the login of the administrator of the site
getTime2resetFilter
public long getTime2resetFilter()
- Returns:
- period of time in millisec to reset the filter of waypoint_moved messages
getTimeToSendValues
public long getTimeToSendValues()
- Returns:
- period of time in millisec to send all the parameter values for a specific drone
getOrderResponseTimeout
public int getOrderResponseTimeout()
- Returns:
- time to wait for the acknowledgement of an order
getDieEventTimeoutTime
public int getDieEventTimeoutTime()
- Returns:
- time to wait after a die event to remove the drone
getDataEventTimeoutTime
public int getDataEventTimeoutTime()
- Returns:
- time to wait after receiving no data for a drone to remove the drone
getTime2checkDeadBuses
public long getTime2checkDeadBuses()
- Returns:
- period of time to check for dead ivy buses in serveur.java
getDbMode
public DbMode getDbMode()
- Returns:
- SILENT or VERBOSE